<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8" />
    <title></title>
    <style>
      body {
        font-size: 30px;
        text-align: center;
      }
      * {
        margin: 0;
        padding: 0;
      }
      .keai {
        overflow: hidden;
        font-size: 28px;
        width: 0;
        height: 35px;
        font-weight: bold;
        width: 800px;
        text-align: center;
        /* 让我们的文字强制一行内显示 */
        white-space: nowrap;
        /* steps 就是分几步来完成我们的动画 有了steps 就不要在写 ease 或者linear 了 */
        animation: w 10s steps(120) forwards;
        animation-iteration-count: infinite;
      }
      @keyframes w {
        0% {
          left: 0%;
          width: 50%;
          color: #ffc0cb;
        }
        20% {
          color: #fa8072;
        }
        60% {
          width: 150%;
          color: #ba55d3;
        }
        80% {
          left: 100%;
          color: #ee82ee;
        }
        100% {
          width: 50%;
          left: 0%;
          color: #ff69b4;
        }
      }
      .box {
        width: 200px;
        height: 200px;
        margin: 200px auto;
        position: relative;
        transform-style: preserve-3d;
        transform: rotateX(-50deg) rotateY(20deg);
        animation: move 5s linear infinite;
        animation-timing-function: ease-in-out;
      }
      @keyframes move {
        0% {
          transform: rotateX(-50deg) rotateY(20deg);
        }
        100% {
          transform: rotateX(360deg) rotateY(360deg);
        }
      }
      .box > div {
        width: 100%;
        height: 100%;
        position: absolute;
      }
      .box-top {
        background-image: url(img.png);
        transform: translateZ(100px);
      }
      .box-bot {
        background-image: url(img1.png);
        transform: translateZ(-100px);
      }
      .box-rit {
        transform: translateX(100px) rotateY(90deg);
      }
      .box-lft {
        transform: translateX(-100px) rotateY(90deg);
      }
      .box-frt {
        transform: translateY(100px) rotateX(90deg);
      }
      .box-bak {
        transform: translateY(-100px) rotateX(90deg);
      }
      .imgC {
        width: 100%;
        height: 100%;
        opacity: 0.5;
      }
      .imgB {
        width: 100%;
        height: 100%;
        opacity: 0.8;
      }
      /* 坐立式 */
      #a {
        width: 800px;
        height: 400px;
        margin: 0 auto;
        /*perpective*/
        perspective: 100%;
      }
      #b {
        width: 800px;
        height: 400px;
        transform: rotatex(-20deg) rotatey(0deg);
        /*border:1px solid red;
	*/
        position: relative;
        /*规定 子元素 按照3d位置摆放*/
        transform-style: preserve-3d;
        animation: xz 10s linear infinite;
        /*				float:left;
	*/
      }
      #b div {
        width: 100px;
        height: 100px;
        /*绝对定位*/
        position: absolute;
        top: 150px;
        left: 350px;
      }
      #b div:nth-child(1) {
        transform: rotatey(0deg) translatez(200px);
      }
      #b div:nth-child(2) {
        transform: rotatey(60deg) translatez(200px);
      }
      #b div:nth-child(3) {
        transform: rotatey(120deg) translatez(200px);
      }
      #b div:nth-child(4) {
        transform: rotatey(180deg) translatez(200px);
      }
      #b div:nth-child(5) {
        transform: rotatey(240deg) translatez(200px);
      }
      #b div:nth-child(6) {
        transform: rotatey(300deg) translatez(200px);
      }
      @keyframes xz {
        100% {
          transform: rotatex(-20deg) rotatey(360deg);
        }
      }
      #c {
        width: 390px;
        height: 390px;
        background: #ddd url("./imgs/wei.jpg") no-repeat;
        background-size: 390px 390px;
        color: #ff1493;
        border-radius: 50%;
        position: absolute;
        top: -145px;
        left: 204px;
        transform: rotatex(-64deg) translatez(237px);
      }
    </style>
  </head>
  <body>
    <div class="keai">老婆♥爱你</div>
    <div id="demo"></div>
    <div class="box">
      <div class="box-top"><img class="imgC" src="./imgs/zhen.jpg" alt="" /></div>
      <div class="box-bot"><img class="imgC" src="./imgs/ai.jpg" alt="" /></div>
      <div class="box-rit">
        <img class="imgC" src="./imgs/ni.jpg" alt="" />
      </div>
      <div class="box-lft"><img class="imgC" src="./imgs/zhen1.jpg" alt="" /></div>
      <div class="box-frt">
        <img class="imgC" src="./imgs/wei.jpg" alt="" />
      </div>
      <div class="box-bak"><img class="imgC" src="./imgs/ni.jpg" alt="" /></div>
    </div>
    <!-- <section>
      <div><img class="imgB" src="./imgs/ke.jpg" alt="" /></div>
      <div><img class="imgB" src="./imgs/ai.jpg" alt="" /></div>
      <div><img class="imgB" src="./imgs/xiao.jpg" alt="" /></div>
      <div><img class="imgB" src="./imgs/li.jpg" alt="" /></div>
      <div><img class="imgB" src="./imgs/jia.jpg" alt="" /></div>
      <div><img class="imgB" src="./imgs/qi.jpg" alt="" /></div>
    </section> -->
    <!-- <div id="a">
      <div id="c">你笑起来 真好看</div>
      <div id="b">
        <div><img class="imgB" src="./imgs/ke.jpg" /></div>
        <div><img class="imgB" src="./imgs/xiao.jpg" /></div>
        <div><img class="imgB" src="./imgs/ai.jpg" /></div>
        <div><img class="imgB" src="./imgs/huang.jpg" /></div>
        <div><img class="imgB" src="./imgs/shan.jpg" /></div>
        <div><img class="imgB" src="./imgs/xiao.jpg" /></div>
      </div>
    </div>
  </body>
</html> -->
<!-- section div:nth-child(1) {
  transform: rotateY(0) translateZ(300px);
}

section div:nth-child(2) {
  /* 先旋转好了再 移动距离 */
  transform: rotateY(60deg) translateZ(300px);
}

section div:nth-child(3) {
  /* 先旋转好了再 移动距离 */
  transform: rotateY(120deg) translateZ(300px);
}

section div:nth-child(4) {
  /* 先旋转好了再 移动距离 */
  transform: rotateY(180deg) translateZ(300px);
}

section div:nth-child(5) {
  /* 先旋转好了再 移动距离 */
  transform: rotateY(240deg) translateZ(300px);
}

section div:nth-child(6) {
  /* 先旋转好了再 移动距离 */
  transform: rotateY(300deg) translateZ(300px);
} -->
<!-- section {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 150px auto;
  transform-style: preserve-3d;
  /* 添加动画效果 */
  animation: rotate 10s linear infinite;
}
@keyframes rotate {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}

section div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
} -->
